xmlhttp_truck_suggest = null;
function suggestTruck()
{
xmlhttp_truck_suggest=GetXmlHttpObject();
if (xmlhttp_truck_suggest==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }

var size = document.getElementById("hf_raw_size").value;
var shipper_code = document.getElementById("txt_shipper_code").value;
var qty = document.getElementById("txt_qty").value;
  
var url="ajax_suggest.php";
url=url+"?size="+size;
url=url+"&code="+shipper_code;
url=url+"&qty="+qty;

xmlhttp_truck_suggest.onreadystatechange=function (){
if (xmlhttp_truck_suggest.readyState==4)
  {
	var my_array = eval(xmlhttp_truck_suggest.responseText);
	document.getElementById('hf_truck_id').value = my_array[0];
	document.getElementById('txt_truck').value = my_array[1];
	//document.getElementById('txt_esizetype').value = my_array[2]+" - "+my_array[3];
	document.getElementById('txt_esizetype').value = my_array[3];
	document.getElementById('txt_contact_person').value = my_array[4];
	document.getElementById('txt_contact_num').value = my_array[6];
  }
};
xmlhttp_truck_suggest.open("GET",url,true);
xmlhttp_truck_suggest.send(null);
}